package com.biaobiaoqi.scoreanalysis.service;

import java.util.List;

import com.biaobiaoqi.scoreanalysis.exception.DuplicateClazzTypeException;
import com.biaobiaoqi.scoreanalysis.exception.NoSuchClazzTypeFoundException;
import com.biaobiaoqi.scoreanalysis.hibernate.bean.ClazzType;

public interface IClazzTypeService {
	public ClazzType findClazzType(String type);
	
	public ClazzType findClazzType(int typeId);
	
	public void addClazzType(String type) throws DuplicateClazzTypeException;

	public void deleteClazzType(String type) throws NoSuchClazzTypeFoundException;

	public List<ClazzType> listClazzType();

	public List<ClazzType> listClazzType(int from, int number);
	
	public void deleteClazzType(int typeId);
}
